﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace JustPlus.SubModel
{
    /// <summary>
    /// DefGeneBox.xaml 的交互逻辑
    /// </summary>
    public partial class DefGeneBox : UserControl
    {
        string temp = "";
        public DefGeneBox()
        {
            InitializeComponent();
            this.Tag = false;
        }

        private void button1_MouseEnter(object sender, MouseEventArgs e)
        {
            temp = button1.Content.ToString();
            button1.Content = @"收听";
        }

        private void button1_MouseLeave(object sender, MouseEventArgs e)
        {
            button1.Content = temp;
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            this.Tag = true;
        }
    }
}
